package im.zego.zimexample.adapter.holder;

import android.content.Context;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;

import im.zego.zimexample.R;
import im.zego.zimexample.adapter.OnItemClickListener;


public class ChatRightViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolder {

    private static final String TAG = "ChatAcceptViewHolder";
    private OnItemClickListener onItemClickListener;
    private RelativeLayout.LayoutParams layoutParams;
    private Context mContext;
    public TextView contentTextView, userIDTextView;

    public ChatRightViewHolder(ViewGroup parent, OnItemClickListener onItemClickListener, Handler handler) {
        super(LayoutInflater.from(parent.getContext()).inflate(R.layout.item_chat_right, parent, false));
        findViewByIds(itemView);
        this.mContext = parent.getContext();
        this.onItemClickListener = onItemClickListener;


    }

    private void findViewByIds(View itemView) {
        contentTextView = itemView.findViewById(R.id.content);
        userIDTextView = itemView.findViewById(R.id.user_id);
    }
}
